#

| Chapter 19 Creating and Reading Archives |

## 19.3 unshar: Unarchive a Shell Archive

Article 19.2 explained how to extract files from a shell archive by executing it as a shell script with sh. There are a few drawbacks to this. One of them is that shar files are often sent through email, and have an email header ahead of shell commands. One can strip out the header manually after saving the file - but why bother?

shar | The unshar program, which is distributed with shar on the CD-ROM, is more intelligent about ignoring leading garbage and checking out the shar file for problems.

- TOR

19.2 Introduction to Shell Archives |  | 19.4 A Simple Version of unshar